.team-section {
    text-align: center;
    padding: 50px 20px;
    background-color: #f9f9f9;
}

.team-section h1 {
    margin-bottom: 40px;
    color: #ffd700;
    font-size: 2.5em;
    cursor: pointer;
}

.team-section h1:hover {
    color: #008080;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.team-member {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    cursor: pointer;
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-member img {
    width: 50%;
    border-radius: 50%;
    margin-bottom: 15px;
}

.team-member h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #ffd700;
}

.team-member h2:hover {
    color: #008080;
}

.team-member p {
    font-size: 1em;
    color: #555;
}

.team-member p:hover {
    color: black;
}

.contact-info a {
    display: inline-block;
    margin: 5px 10px;
    font-size: 24px;
    color: #ffd700;
    text-decoration: none;
}

.contact-info a:hover {
    color: #008080;
}

@media (max-width: 1200px) {
    .team-section h1 {
        font-size: 2.3em;
        color: #008080;
    }
    .team-section h1:hover {
        color: #ffd700;
    }
    .team-member h2 {
        color: #008080;
    }
    .team-member h2:hover {
        color: #ffd700;
    }
    .contact-info a {
        color: #008080;
    }
    .contact-info a:hover {
        color: #ffd700;
    }
}

@media (max-width: 1080px) {
    .team-section {
        padding: 40px 15px;
    }

    .team-section h1 {
        font-size: 1.7em;
        color: #008080;
    }

    .team-section h1:hover {
        color: #ffd700;
    }

    .team-grid {
        gap: 15px;
    }

    .team-member {
        padding: 15px;
    }

    .team-member img {
        width: 75%;
    }

    .team-member h2 {
        font-size: 1.3em;
        color: #008080;
    }

    .team-member h2:hover {
        color: #ffd700;
    }

    .team-member p {
        font-size: 0.95em;
    }

    .contact-info a {
        font-size: 22px;
        margin: 4px 8px;
        color: #008080;
    }

    .contact-info a:hover {
        color: #ffd700;
    }
}

@media (max-width: 1024px) {
    .team-section h1 {
        font-size: 2.1em;
        color: #008080;
    }
    .team-section h1:hover {
        color: #ffd700;
    }
    .team-member img {
        width: 60%;
    }
    .team-member h2 {
        font-size: 1.4em;
        color: #008080;
    }
    .team-member h2:hover {
        color: #ffd700;
    }
    .contact-info a {
        color: #008080;
    }
    .contact-info a:hover {
        color: #ffd700;
    }
}

@media (max-width: 912px) {
    .team-section h1 {
        font-size: 2em;
        color: #008080;
    }
    .team-section h1:hover {
        color: #ffd700;
    }
    .team-member img {
        width: 65%;
    }
    .team-member h2 {
        color: #008080;
    }
    .team-member h2:hover {
        color: #ffd700;
    }
    .contact-info a {
        color: #008080;
    }
    .contact-info a:hover {
        color: #ffd700;
    }
}

@media (max-width: 853px) {
    .team-section h1 {
        font-size: 1.9em;
        color: #008080;
    }
    .team-section h1:hover {
        color: #ffd700;
    }
    .team-member img {
        width: 70%;
    }
    .team-grid {
        gap: 15px;
    }
    .team-member h2 {
        color: #008080;
    }
    .team-member h2:hover {
        color: #ffd700;
    }
    .contact-info a {
        color: #008080;
    }
    .contact-info a:hover {
        color: #ffd700;
    }
}

@media (max-width: 820px) {
    .team-section h1 {
        font-size: 1.8em;
        color: #008080;
    }
    .team-section h1:hover {
        color: #ffd700;
    }
    .team-member h2 {
        font-size: 1.3em;
        color: #008080;
    }
    .team-member h2:hover {
        color: #ffd700;
    }
    .contact-info a {
        color: #008080;
    }
    .contact-info a:hover {
        color: #ffd700;
    }
}

@media (max-width: 768px) {
    .team-section h1 {
        font-size: 1.7em;
        color: #008080;
    }
    .team-section h1:hover {
        color: #ffd700;
    }
    .team-member img {
        width: 75%;
    }
    .team-member h2 {
        color: #008080;
    }
    .team-member h2:hover {
        color: #ffd700;
    }
    .contact-info a {
        color: #008080;
    }
    .contact-info a:hover {
        color: #ffd700;
    }
}

@media (max-width: 480px) {
    .team-section {
        padding: 30px 10px;
    }
    .team-section h1 {
        font-size: 1.5em;
        color: #008080;
    }
    .team-section h1:hover {
        color: #ffd700;
    }
    .team-member img {
        width: 80%;
    }
    .team-member h2 {
        font-size: 1.2em;
        color: #008080;
    }
    .team-member h2:hover {
        color: #ffd700;
    }
    .contact-info a {
        font-size: 20px;
        color: #008080;
        margin: 4px 8px;
    }
    .contact-info a:hover {
        color: #ffd700;
    }
}